package com.javasm.mb_store_api_final.sys_control.logcontrol.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.javasm.mb_store_api_final.sys_control.logcontrol.entity.SysLoginLog;
import com.javasm.mb_store_api_final.sys_control.logcontrol.dao.SysLoginLogDao;
import com.javasm.mb_store_api_final.sys_control.logcontrol.entity.SysLogInfo;
import com.javasm.mb_store_api_final.sys_control.logcontrol.service.SysLoginLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 系统访问记录(SysLoginLog)表服务实现类
 *
 * @author makejava
 * @since 2024-08-04 16:47:02
 */
@Service("sysLoginLogService")
public class SysLoginLogServiceImpl extends ServiceImpl<SysLoginLogDao,SysLoginLog> implements SysLoginLogService {
    @Resource
    private SysLoginLogDao sysLoginLogDao;

    @Override
    public List<SysLoginLog> queryAllLog() {
        List<SysLoginLog> log =  sysLoginLogDao.queryAllLog();
        return log;
    }

    @Override
    public List<SysLoginLog> queryBy(SysLogInfo sysLogInfo) {
        List<SysLoginLog> log =  sysLoginLogDao.queryBy(sysLogInfo);
        return log;
    }
}